
package com.weibo.click.local;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicInteger;


/**
 * 记录微博的用户名密码信息
 * @author Administrator
 *
 */

public class QQWeiBo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 296050567082158307L;

	public void setGroup(String group) {
		this.group = group;
	}
	public String getGroup() {
		return this.group;
	}

    private String qq;
	private String group;//表示 sina, QQ或者其他网站
	private String username;
	private String password;
	private String usedFlag;//Y or N
	private AtomicInteger msgCount;
	
	public QQWeiBo() {
		msgCount =new AtomicInteger(0);	
	}

	public String getUser() {
		return username;
	}

	public void setUser(String user) {
		this.username = user;
	}

	public String getPass() {
		return password;
	}

	public void setPass(String pass) {
		this.password = pass;
	}


	public void setUsedFlag(String usedFlag) {
		this.usedFlag = usedFlag;
	}

	public String getUsedFlag() {
		return usedFlag;
	}

	public boolean setMsgCount(int msgCount) {
		return this.msgCount.compareAndSet(getMsgCount(), msgCount);
	}

	public int getMsgCount() {
		if(msgCount==null){
			return 0;
		}
		return msgCount.get();
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getQq() {
		return qq;
	}

}
